import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
    {
        path: '/',
        name: "/",
        redirect: '/home',
        children: [
            {
                path: "/home",
                name: "home",
                component: () => import("@/view/home.vue")
            },
            // 流程
            {
                path: "/flowDesign/:processId",
                name: "flowDesign",
                component: () => import("@/view/flow/index.vue"),
                meta: {
                    title: "流程管理",
                    keepalive: true,
                },
            },
            {
                path: "/new",
                name: "new",
                component: () => import("@/view/new/index.vue")
            },
            {
                path: "/one",
                name: "one",
                component: () => import("@/view/oneVue/index.vue")
            },
            {
                path: "/treeSelect",
                name: "treeSelect",
                component: () => import("@/view/from/components/treeSelect.vue")
            },
            {
                path: "/forms",
                name: "forms",
                component: () => import("@/view/from/index.vue")
            },
        ],
    }
]
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router